<div id="addFloorShareModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-body">
        <h3 class="m-t-none m-b ">
          <vc:i18n name="添加" namespace="addFloorShare"></vc:i18n>
        </h3>
        <div class="ibox-content">

          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='楼栋' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <input v-model="addFloorShareInfo.floorNum" disabled type="text"
                :placeholder="vc.i18n('必填，请填写楼栋','addFloorShare')" class="form-control">
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='表类型' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <select class="custom-select" v-model="addFloorShareInfo.meterType">
                <option selected disabled value="">{{vc.i18n('必填，请选择表类型','addFloorShare')}}</option>
                <option value="D">{{vc.i18n('电表','addFloorShare')}}</option>
                <option value="S">{{vc.i18n('水表','addFloorShare')}}</option>
              </select>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='表编号' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <input v-model="addFloorShareInfo.meterNum" type="text"
                :placeholder="vc.i18n('选填，请填写表编号','addFloorShare')" class="form-control">
              <span>没有表号请填写1</span>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='费用项' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <select class="custom-select" v-model="addFloorShareInfo.configId">
                <option selected disabled value="">{{vc.i18n('必填，请选择费用项','addFloorShare')}}</option>
                <option v-for="(item,index) in addFloorShareInfo.feeConfigs" :key="index" v-bind:value="item.configId">
                  {{item.feeName}}
                </option>
              </select>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='公摊单价' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <input v-model="addFloorShareInfo.sharePrice" type="number"
                :placeholder="vc.i18n('必填，请填写公摊单价','addFloorShare')" class="form-control">
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='公摊方式' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <select class="custom-select" v-model="addFloorShareInfo.shareType">
                <option selected disabled value="">{{vc.i18n('必填，请选择公摊方式','addFloorShare')}}</option>
                <option value="1001">{{vc.i18n('按面积','addFloorShare')}}</option>
                <option value="2002">{{vc.i18n('按户','addFloorShare')}}</option>
              </select>
            </div>
          </div>
          <div class="form-group row" v-if="addFloorShareInfo.shareType == '3003'">
            <label class="col-sm-2 col-form-label">
              <vc:i18n name='公式' namespace='addFloorShare'></vc:i18n>
            </label>
            <div class="col-sm-10">
              <input v-model="addFloorShareInfo.formulaValue" type="text"
                :placeholder="vc.i18n('必填，请填写公式','addFloorShare')" class="form-control">
            </div>
          </div>

          <div class="ibox-content">
            <button class="btn btn-primary float-right" type="button" v-on:click="saveFloorShareInfo()">
              <vc:i18n name="保存"></vc:i18n>
            </button>
            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">
              <vc:i18n name="取消"></vc:i18n>
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>